package com.situ.boot.mapper;

import java.util.List;

import com.situ.boot.entity.AdminUserEntity;
import com.situ.boot.entity.User;
import com.situ.boot.entity.UserEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

@Service
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserEntity user);

    int insertSelective(UserEntity record);

    UserEntity selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(UserEntity record);

    int updateByPrimaryKey(UserEntity user);

	AdminUserEntity login(@Param(value = "username") String username, @Param(value = "password") String password);

	List<UserEntity> selectAll();

    List<UserEntity> selectByPage(UserEntity user);

    List<User> selectBySup(Integer uid);

    User selectByTeamUserId(Integer uid);
}